import request from "../utils/request";

export function chunkUpload(data) {
  return request({
    url: "/large/file/upload",
    headers: { "Content-Type": "multipart/form-data" },
    method: "post",
    data,
  });
}

export function mergeUpload(data) {
  return request({
    url: "/large/file/merge",
    method: "post",
    data,
  });
}

export function validateUpload(data) {
  return request({
    url: "/large/file/validate",
    method: "post",
    data,
  });
}

export function cancelUploadFile(data) {
  return request({
    url: "/large/file/cancel",
    method: "post",
    data,
  });
}
